package com.baizhi.springmvc.service.imp;


import com.baizhi.springmvc.dao.CommentDao;
import com.baizhi.springmvc.entity.Comment;
import com.baizhi.springmvc.service.CommentService;
import org.apache.ibatis.session.SqlSession;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class CommentServiceImp implements CommentService {
    @Autowired
    private CommentDao commentDao;
    @Override
    public List<Comment> selectAllComment(Integer bookid) {
        List<Comment> commentList = commentDao.selectAllComment(bookid);
        return commentList;
    }
}
